//
//  PickerView.h
//  DaJiang
//
//  Created by sally on 16/10/31.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol PickerViewDelegate;

typedef NS_ENUM(NSUInteger, PickerType) {
  PickerType_Loc,        //成为专家，常驻城市
  PickerType_ExpertSort, //成为专家，分类
};

@interface PickerView : UIView

@property (weak, nonatomic) IBOutlet UIPickerView *pickerView;
@property (nonatomic, assign) id<PickerViewDelegate> delegate;
- (instancetype)initWithPickerType:(PickerType)type;
- (void)show;
- (void)showPickerInView:(UIView *)view;
- (void)hidePickerView;

@end

@protocol PickerViewDelegate <NSObject>
- (void)cancelSelect:(UIView *)picker;
@end
